package proxy;

public class StockServicePolymerizeProxy implements StockService {
    private StockService stockService;

    public StockServicePolymerizeProxy(StockService stockService) {
        this.stockService = stockService;
    }

    @Override
    public void accessStock() {
        System.out.println("聚合方式访问库存，开始...");
        stockService.accessStock();
        System.out.println("聚合方式访问库存，结束...");
    }
}
